package com.tj.jinzao.model;

/**
 * 请求返回的response
 * created by wjy 2018/04/21.
 */
public class ResultResponse<T> {
    private String face_photo_url;
    private String tongue_photo_url;

    public String getFace_photo_url() {
        return face_photo_url;
    }

    public void setFace_photo_url(String face_photo_url) {
        this.face_photo_url = face_photo_url;
    }

    public String getTongue_photo_url() {
        return tongue_photo_url;
    }

    public void setTongue_photo_url(String tongue_photo_url) {
        this.tongue_photo_url = tongue_photo_url;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private String msg;
    private String code;
    private T data;
    /**
     * pi : {"currentPage":0,"pageSize":0,"query":{},"totalPage":0,"totalSize":0}
     */
    private PiBean pi;

    @Override
    public String toString() {
        return "ResultResponse{" +
                "msg='" + msg + '\'' +
                ", code='" + code + '\'' +
                ", data=" + data +
                ", pi=" + pi +
                '}';
    }

    public PiBean getPi() {
        return pi;
    }

    public void setPi(PiBean pi) {
        this.pi = pi;
    }

    public ResultResponse(String message, String code, T resultData) {
        this.msg = message;
        this.code = code;
        this.data = resultData;
    }

    public String getMessage() {
        return msg;
    }

    public void setMessage(String message) {
        this.msg = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setData(T data) {
        this.data = data;
    }

    public T getData() {
        return data;
    }


    public static class PiBean {

        /**
         * currentPage : 0
         * pageSize : 0
         * query : {}
         * totalPage : 0
         * totalSize : 0
         */

        private int currentPage;
        private int pageSize;
        private int totalPage;
        private int totalSize;

        public int getCurrentPage() {
            return currentPage;
        }

        public void setCurrentPage(int currentPage) {
            this.currentPage = currentPage;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(int totalPage) {
            this.totalPage = totalPage;
        }

        public int getTotalSize() {
            return totalSize;
        }

        public void setTotalSize(int totalSize) {
            this.totalSize = totalSize;
        }

        public static class QueryBean {
        }
    }
}
